package com.ssm.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Lenovo on 2019-10-15.
 */
public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("aop.xml");
        Math math = applicationContext.getBean("math", Math.class);
        int n1 = 100, n2 = 5;
        math.add(n1, n2);
        math.subtract(n1, n2);
        math.mul(n1, n2);
        math.dev(n1, n2);
    }
}
